﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="Microhard.Framework.MVCHelper" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    我的信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            我的信息
        </div>
        <div class="options">
        </div>
    </div>
    <table width="100%">
        <tr>
            <td class="adminTitle">
                &nbsp;
            </td>
            <td class="adminData">
                &nbsp;
            </td>
        </tr>
    </table>
    <p>
    </p>
    <table class="adminContent">
        <tr>
            <td>
                <%Html.Telerik().Grid<Micrhard.FMCG.Server.Models.NoticeModel>((List<Micrhard.FMCG.Server.Models.NoticeModel>)this.Model.Data)
                    .Name("operation-grid")
                         .Columns(columns =>
                    {
                        columns.Bound(x => x.Title).Title("标题");
                        columns.Bound(x => x.Message).Title("内容");
                        columns.Bound(x => x.CreateTime).Title("发布时间");
                    })
                      .Pageable(settings => settings.Total(Model.Total).PageSize(Html.GetGridPageSize()).Position(GridPagerPosition.Top))
                      //绑定搜索按钮，执行对应的action
                    .DataBinding(dataBinding => dataBinding.Ajax().Select("_List", "MyNotice"))
                    .EnableCustomBinding(true)
                    .Render();
                %>
            </td>
        </tr>
    </table>
</asp:Content>
